import { CITY_LIST } from '@/assets/js/constant'

// var CITY_LIST = [
//   {name: '阿坝', value: 'aba', id: 5254},
//   {name: '阿克苏', value: 'akesu', id: 7855},
//   {name: '阿拉尔', value: 'alaer', id: 15584},
//   {name: '阿拉善盟', value: 'alashanmeng', id: 9344},
//   {name: '阿里', value: 'ali', id: 15571},
//   {name: '安康', value: 'ankang', id: 6541},]

export function getCityName(cityId) {
  for (let i = 0; i < CITY_LIST.length; i++) {
    if (parseInt(cityId) === CITY_LIST[i].id) {
      console.log(CITY_LIST[i].name)
      return CITY_LIST[i].name
    }
  }
}
